# 1.定义了一个Person类
class Person(object):
    # 2.定义公共属性和公共方法
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def speak(self):
        print('I can speak Chinese!')


# 3.定义一个Student子类
class Student(Person):
    pass


# 4.实例化子类对象
s1 = Student('jack', 30)
print(s1.name)
print(s1.age)

s1.speak()

